<template>
  <el-dialog v-model="visible" title="查看" @close="resetData"   width="50%">
	<div>
		<component  :is="route"></component>
	</div>
  </el-dialog>
</template>

<script>
import { mapGetters } from 'vuex'
import { defineAsyncComponent, getCurrentInstance } from "vue";
export default {
  name: 'AuditMember',
  props: {
    loading: {
      type: Boolean,
      default: false
    },
    onOk: {
      type: Function,
      default: () => {}
    },
    allTeamList: {
      type: Array,
      default: () => ([])
    }
  },
  data() {
    return {
      visible: false,
      // 修改
      isModify: false,
      // 标题
      title: '',
	  route:null
    }
  },
  computed: {
  },
  methods: {
    /**
     * 显示/隐藏
     * @param {Boolean} flag
     * @param {Object} param
      */
    updateModal(flag, param) {
      this.visible = flag;
	  this.route = defineAsyncComponent({
		loader: () => import(`../${param}`),
		delay: 1000,
		timeout: 3000,
	  });
    },
    /**
     * 重置数据
     */
    resetData() {
      this.auditForm = {}
    }
  }
}
</script>
